ulimit -c unlimited 
ulimit -c
echo "/tmp/core" > /proc/sys/kernel/core_pattern
